package ee.ut.sysmodel.bgmn.model;

public class Player {
	public enum Identity {
		PLAYER_ONE,
		PLAYER_TWO
	}
	
	private int barCount;
	private int goalCount;
	private Identity identity;
	
	public Player(Identity identity) {
		this.identity = identity;
		
		barCount = 0;
		goalCount = 0;
	}
	
	public Identity getIdentity() {
		return identity;
	}
	
	public void addPieceToBar() {
		barCount++;
	}
	
	public void setBarCount(int count) {
		barCount = count;
	}
	
	public int getBarCount(){
		return barCount;
	}
	public int getGoalCount(){
		return goalCount;
	}
	
	public void setGoalCount(int count) {
		goalCount = count;
	}
}
